//添加/编辑
import {ResponseData} from "@/api/common/type";

export interface MenuAddOrUpdateForm {
    uuid? :string,
    redirect: string,
    menuName: string,
    parentUuid: string,
    orderNum: number,
    perms: string,
    remark: string
}

export interface RoleMenuForm {
    roleUuid :string,
    menuUuidList: string[],
}

//定义获取全部数据列表
export interface MenuAllListResponseData extends ResponseData {
    result: {
        data: MenuList
    }
}

export interface MenuList {
    menuList: MenuInfo[]
}

export interface MenuInfoResponseData extends ResponseData {
    result: {
        menuInfo: MenuInfo
    }
}

export interface MenuInfo {
    redirect:string,
    "uuid": string,
    "menuName": string,
    "code": string,
    "parentUuid": string,
    "orderNum": number,
    "path": string,
    "allPath": string,
    "component": string,
    "componentName": string,
    "isFrame": number,
    "isCache": number,
    "isTop": string,
    "isEnd": string,
    "menuType": string,
    "visible": string,
    "status": string,
    "perms": string,
    "icon": string,
    "createBy": string,
    "createTime": string,
    "updateBy": string,
    "updateTime": string,
    "remark": string,
    childMenuVOList: MenuInfo[]
}
